package com.guitest.gui.userinfo;

import java.math.BigDecimal;
import java.util.Random;

public class UserTem {
    public double Number(){
        //int max=20;
        //int min=10;
        double temMin = 35;
        Random random = new Random();

        //double s01 = 3;
        //double s = random.nextInt(max) * 1.0 % (max-min+1) / 2.5 + temMin;
        double data = random.nextDouble() * 4 + temMin;
        double s = new BigDecimal(data).setScale(1, BigDecimal.ROUND_HALF_UP).doubleValue();
        return s;
    }
}
